import { dialog } from "electron";

function chooseFile(win, exts) {
  return dialog.showOpenDialogSync(win, {
    title: '选择文件',
    filters: [{
      name: '可选文件',
      extensions: exts
    }],
    properties: ['openFile']
  })
}

export default {
  chooseFile
}
